(function() {
	var page    = pf.newPage('service');
	var $el     = null;
	var data_id = '';

	function text_show(action) {
		// $el.find('._four_right').css("background-color","rgb(132, 132, 132)");
		// action.css("background-color","#941711");
		data_id = action;
		$el.find('.porsche_model').html(__(data_id));
		$el.find('.center_three1').html(__('' + data_id + '_title2'));
		$el.find('.center_three2').html(__('' + data_id + '_desc'));
		$el.find('.mode_center_big').css('background-image', 'url(./image/service/' + data_id + '.jpg)');
	}

	/**
	 * 初始化时调用
	 */
	page.onCreate = function() {
		data_id = "Financial_services";
		$el = page.$el;

		$el.on('click', '.mode_center_big', function() {
			pcc2.$video.fadeIn();
			pcc2.$video.append('<img style="position: absolute;bottom: 38px;right: 35px;z-index:100" src="./image/close.png"><video  class="vide_id" style="z-index:100;  width: 100%;height: 100%;" controls="controls" autoplay="autoplay"><source src="./video/service/' + data_id + '/' + data_id + '.mp4" type="video/mp4" /></video>');
		});
		$el.find('.center_one_right3,.center_one_right4').click(function() {
			var dataID = $(this).attr('data_id');

			if(dataID == 'goods') {
				pf.goPage("model", {
					notJump: true,
					force:   true,
					cars:    'lifestyle',
					car:     'pds'
				});
			}else {
				pf.goPage('service');
				text_show(dataID);
			}
		});
	};

	/**
	 * 页面显示时自动调用
	 */
	page.onShow = function(params) {
		// $el.show();
		if(params.subID)
			text_show(params.subID);
	};

	/**
	 * 页面隐藏时调用
	 */
	page.onHide = function() {
		// $el.hide();
		$el.find(".center_one_right3").click();
	};

})();